import request from '@/utils/request'

export function getLog(id) {
  return request({
    url: '/log/' + id,
    method: 'get'
  })
}

export function listLog(data) {
  return request({
    url: '/log/list/' + data.pageNum + '/' + data.pageSize,
    method: 'get',
    params: {
      logType: data.logType
    }
  })
}

export default { getLog, listLog }
